<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class OrderParent extends BaseModel
{
    use HasFactory;
    //订单审核设置
    protected $table = 'order_parent';
    // 允许批量操作的字段
    protected $fillable = [
        'serial_number',
        'order_number',
        'order_parent_id',
        'order_date',
        'delivery_date',
        'account_executive_id',
        'product_id',
        'model_number_id',
        'specification_id',
        'color_id',
        'direction',
        'customer_id',
        'receivables',
        'received',
        'remark',
        'emergency_procedure',
        'is_replenishment',
        'is_stock_up',
        'created_at',
        'updated_at',
        'status',
        'user_id',
        'id',
        'is_audit',
        'info_status',
        'material_status',
        'financial_status',
        'production_status',//生产状态：0：未生产1：生产中2：半成品3：成品
        'warehouse_id',
        'goods_shelf_id'
    ];

    public function scopeSearch($query,$params)
    {
        return $query;
    }
}
